package com.itheima.six;

public class Demo6 {
    public static void main(String[] args) {
        Breeder b = new Breeder();
        b.breed(new Dog());

        b.breed(new Frog());

        b.breed(new Sheep());
    }
}
